import { exInputNumber, exSelect } from '@ve/common/components/extension'
import { exInput } from '../../extension/index'

export default {
  VERSION: '20220408',
  type: 'uiTimeDate',
  name: '时间选择',
  icon: 'time-line',
  //数据别名
  // dataName: 'uiFlexbox_data',
  //扩展
  extension: {
    boxHeight: exInputNumber('高度', 50, 1, 500),
    topMargin: {
      type: 'exInputNumber',
      name: '上外边距',
      value: 0,
    },
    rightMargin: {
      type: 'exInputNumber',
      name: '右外边距',
      value: 0,
    },
    bottomMargin: {
      type: 'exInputNumber',
      name: '下外边距',
      value: 0,
    },
    leftMargin: {
      type: 'exInputNumber',
      name: '左外边距',
      value: 0,
    },
    titleBgColor: {
      type: 'exSetChartColor',
      name: '主题背景',
      value: '#D7CBEE',
    },
    titleColor: {
      type: 'exSetChartColor',
      name: '主题字体',
      value: '#fff',
    },
    timeRange: [],
    separator: exInput('分割内容', '-'),
    type: exSelect('内容位置', 'datetimerange', [
      {
        label: 'year',
        value: 'year',
      },
      {
        label: 'year-month',
        value: 'month',
      },
      {
        label: 'year-month-day',
        value: 'date',
      },
      {
        label: 'year-month-day h:m:s',
        value: 'datetime',
      },
      {
        label: '日期时间范围',
        value: 'datetimerange',
      },
      {
        label: '日期范围',
        value: 'daterange',
      },
    ]),
  },
  list: [],
  interaction: [],
}
